﻿using MengCC.Core.Data;
using System;
using System.Collections.Generic;
using System.Text;

namespace MengCC.Core.Plugins
{
    public class Plugin: BaseEntity<string>
    {
        /// <summary>
        /// 插件名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 插件类型，单个插件可以是多种类型
        /// 类型约定它可以在哪个阶段用
        /// </summary>
        public List<string> Types { get; set; }
        /// <summary>
        /// 视图路径
        /// 插件载入的视图路径
        /// </summary>
        public string ViewPath { get; set; }
        /// <summary>
        /// 版本
        /// </summary>
        public string Version { get; set; }
        /// <summary>
        /// 入口库（dll名称，包含dll后缀）
        /// </summary>
        public string EntryLib { get; set; }
        /// <summary>
        /// 插件所在目录
        /// </summary>
        public string Path { get; set; }
        /// <summary>
        /// 描述/简介
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 平台
        /// </summary>
        public string Platform { get; set; }


        public enum PluginEnum
        {
            /// <summary>
            /// 仓储
            /// </summary>
            Repository,
            /// <summary>
            /// 构建
            /// </summary>
            Build,
            /// <summary>
            /// 构建后
            /// </summary>
            Builded,
        }
    }

}
